{load_module name="Find" url="`$site->relroot_path`admin/find.php" assign="mod_find"}
<form name="cad_admin" method="post" action="?action=cadastrar">
<center>
<table width="383" border="0" align="center" cellpadding="3">
	<tr>
		<td colspan="2" align="center" valign="top"><span class="style1"><strong>Editar Disciplina</strong></span></td>
	</tr>
	<tr><td colspan="2" align="left">&nbsp;</td></tr>
    <tr>
		<td width="152" align="left">Nome:</td>
		<td width="207" align="left"><input name="nome" type="text" id="nome" size="32" maxlength="80" value="{$teste}"/></td>
	</tr>
	<tr>
		<td align="left">Codigo:</td>
		<td align="left"><input name="codigo" type="text" id="codigo" size="32" maxlength="14" value="{$mydisciplina->get('disciplina', 'codigo')}" /></td>
	</tr>


  	<tr>
		<td align="left">Departamento</td>
        <td colspan="3" align="left"><select name="departamento" >
             <option> Selecione o Departamento </option>
        
        {foreach name=dep_loop item=item from=$mod_find->find_alldepartments()}
            <option value="{$item.id}">{$item.nome}</option>
        {/foreach}
        </select></td>
	</tr>

    <tr>
		<td align="left">Tipo Disciplina</td>
        <td colspan="3" align="left"><select name="tipo" >
             <option> Selecione o Tipo de Disciplina </option>
        {foreach name=dep_loop item=item from=$mod_find->find_alltipodiscipline()}
            <option value="{$item.id}">{$item.descricao}</option>
        {/foreach}
        </select></td>
	</tr>


	<tr>
		<td align="left">Carga Horária: </td>
		<td align="left"><input name="cargahoraria" type="text" id="cargahoraria" size="32" maxlength="14" value="{$mydisciplina->get('Disciplina', 'cargahoraria')}" /></td>
	</tr>
	
	<tr>
		<td align="left">Semestre:</td>
		<td align="left"><input name="semestre" type="text" id="semestre" size="32" maxlength="40" value="{$mydisciplina->get('Disciplina', 'semestre')}" /></td>
	</tr>
	
	<tr>
		<td colspan="2" align="left">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2" align="right"><input name="Reset" type="reset" id="Reset" value="Limpar" />
		<input name="Submit" type="submit" id="Submit" value="Avan&ccedil;ar" /></td>
	</tr>
</table>
</center>
</form>